package com.ambow.core.mapper;

import com.ambow.core.po.DqUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author dq
 * @since 2022-09-05
 */
public interface DqUserMapper extends BaseMapper<DqUser> {
    @Select("select user_attribute from dq_user where role_id = #{roleId}")
    Integer findAttributeByRoleId(Integer roleId);

    @Select("select * from dq_user where role_id = #{roleId}")
    DqUser findUserByRoleId(Integer roleId);
}
